/*
 * @Author: wuyuxin
 * @Date: 2022-01-09 17:53:09
 * @LastEditors: wuyuxin
 * @LastEditTime: 2022-01-09 17:56:43
 * @Description: 
 */

module.exports = {
  webpack: (config) => {
    config.output.library = 'reactApp';
    config.output.libraryTarget = 'umd';
    config.output.publicPath = 'http://localhost:20000/';
    return config;
  },
  devServer: (configFunction) => {
    return function (proxy, allowedHost) {
      const config = configFunction(proxy, allowedHost);
      config.headers = {
        "Access-Control-Allow-Origin": '*'
      }
      return config
    }
  }
}
